Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | ;(function( window, document, undefined ) { |
||
35 | checkNavigation: function( currentTop ) |
||
36 | { |
||
37 | // scrolling up |
||
38 | if( this.previousTop - currentTop > this.options.scrollDelta ) { |
||
39 | this.el.classList.remove( 'is-hidden' ); |
||
40 | } |
||
41 | // scrolling down |
||
42 | else if( currentTop - this.previousTop > this.options.scrollDelta && currentTop > this.options.scrollOffset ) { |
||
43 | this.el.classList.add( 'is-hidden' ); |
||
44 | } |
||
45 | }, |
||
46 | |||
68 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.